# -*- coding: utf-8 -*-

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5 import QtWebEngineWidgets



class UiMainWindow(object):
    def setupUi(self, mainWindow):
        mainWindow.setObjectName("mainWindow")
        mainWindow.resize(1366, 768)
        self.centralwidget = QtWidgets.QWidget(mainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.widget_6 = QtWidgets.QWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_6.sizePolicy().hasHeightForWidth())
        self.widget_6.setSizePolicy(sizePolicy)
        self.widget_6.setObjectName("widget_6")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget_6)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.widget_3 = QtWidgets.QWidget(self.widget_6)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_3.sizePolicy().hasHeightForWidth())
        self.widget_3.setSizePolicy(sizePolicy)
        self.widget_3.setMinimumSize(QtCore.QSize(150, 0))
        self.widget_3.setMaximumSize(QtCore.QSize(155, 16777215))
        self.widget_3.setObjectName("widget_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget_3)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.widget = QtWidgets.QWidget(self.widget_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName("widget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.widget)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.btnRemoveNotebook = QtWidgets.QPushButton(self.widget)
        self.btnRemoveNotebook.setObjectName("btnRemoveNotebook")
        self.horizontalLayout.addWidget(self.btnRemoveNotebook)
        self.btnAddNotebook = QtWidgets.QPushButton(self.widget)
        self.btnAddNotebook.setObjectName("btnAddNotebook")
        self.horizontalLayout.addWidget(self.btnAddNotebook)
        self.verticalLayout_2.addWidget(self.widget)
        self.lvNotebookList = QtWidgets.QListView(self.widget_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lvNotebookList.sizePolicy().hasHeightForWidth())
        self.lvNotebookList.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lvNotebookList.setFont(font)
        self.lvNotebookList.setEditTriggers(
            QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
        self.lvNotebookList.showDropIndicator = False
        self.lvNotebookList.setObjectName("lvNotebookList")
        self.verticalLayout_2.addWidget(self.lvNotebookList)
        self.widget_2 = QtWidgets.QWidget(self.widget_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_2.sizePolicy().hasHeightForWidth())
        self.widget_2.setSizePolicy(sizePolicy)
        self.widget_2.setObjectName("widget_2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.widget_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.btnSetting = QtWidgets.QPushButton(self.widget_2)
        self.btnSetting.setObjectName("btnSetting")
        self.verticalLayout.addWidget(self.btnSetting)
        self.btnSyncToCloud = QtWidgets.QPushButton(self.widget_2)
        self.btnSyncToCloud.setObjectName("btnSyncToCloud")
        self.verticalLayout.addWidget(self.btnSyncToCloud)
        self.btnSyncToLocal = QtWidgets.QPushButton(self.widget_2)
        self.btnSyncToLocal.setObjectName("btnSyncToLocal")
        self.verticalLayout.addWidget(self.btnSyncToLocal)
        self.verticalLayout_2.addWidget(self.widget_2)
        self.horizontalLayout_3.addWidget(self.widget_3)
        self.widget_4 = QtWidgets.QWidget(self.widget_6)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setMinimumSize(QtCore.QSize(240, 0))
        self.widget_4.setMaximumSize(QtCore.QSize(245, 16777215))
        self.widget_4.setObjectName("widget_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget_4)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.widget_5 = QtWidgets.QWidget(self.widget_4)
        self.widget_5.setObjectName("widget_5")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget_5)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtWidgets.QLabel(self.widget_5)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.btnRemoveNote = QtWidgets.QPushButton(self.widget_5)
        self.btnRemoveNote.setObjectName("btnRemoveNote")
        self.horizontalLayout_2.addWidget(self.btnRemoveNote)
        self.btnAddNote = QtWidgets.QPushButton(self.widget_5)
        self.btnAddNote.setObjectName("btnAddNote")
        self.horizontalLayout_2.addWidget(self.btnAddNote)
        self.verticalLayout_3.addWidget(self.widget_5)
        self.lvNoteList = QtWidgets.QListView(self.widget_4)
        # self.lvNoteList.setProperty("isWrapping", True)
        self.lvNoteList.setWordWrap(True)
        self.lvNoteList.setEditTriggers(
            QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
        self.lvNoteList.showDropIndicator = False
        self.lvNoteList.setObjectName("lvNoteList")
        self.verticalLayout_3.addWidget(self.lvNoteList)
        self.horizontalLayout_3.addWidget(self.widget_4)
        self.gridLayout.addWidget(self.widget_6, 0, 0, 1, 1)
        # spacerItem = QtWidgets.QSpacerItem(
        #     20, 765, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        # self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.mdEditorWbrowser = QtWebEngineWidgets.QWebEngineView(
            self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mdEditorWbrowser.sizePolicy().hasHeightForWidth())
        self.mdEditorWbrowser.setSizePolicy(sizePolicy)
        self.mdEditorWbrowser.setObjectName("mdEditorWbrowser")
        self.gridLayout.addWidget(self.mdEditorWbrowser, 0, 2, 1, 1)
        mainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(mainWindow)
        QtCore.QMetaObject.connectSlotsByName(mainWindow)

    def retranslateUi(self, mainWindow):
        _translate = QtCore.QCoreApplication.translate
        mainWindow.setWindowTitle(_translate("mainWindow", "PyQtNote"))
        self.label.setText(_translate("mainWindow", "笔记本"))
        self.btnRemoveNotebook.setText(_translate("mainWindow", "-"))
        self.btnAddNotebook.setText(_translate("mainWindow", "+"))
        self.btnSetting.setText(_translate("mainWindow", "设置"))
        self.btnSyncToCloud.setText(_translate("mainWindow", "同步到云端"))
        self.btnSyncToLocal.setText(_translate("mainWindow", "同步到本地"))
        self.label_2.setText(_translate("mainWindow", "笔记"))
        self.btnRemoveNote.setText(_translate("mainWindow", "-"))
        self.btnAddNote.setText(_translate("mainWindow", "+"))
